package com.zy.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zy.entity.Apply;
import com.zy.mapper.ApplyMapper;
import com.zy.service.ApplyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class ApplyServiceImpl extends ServiceImpl<ApplyMapper, Apply> implements ApplyService {

    @Autowired
    ApplyMapper applyMapper;

    /**
     * 添加申请并返回自增id
     * @param apply
     * @return
     */
    @Override
    public Integer addApply(Apply apply) {
        return applyMapper.addApply(apply);
    }

    @Override
    public List<Map> getApplyList(Integer uid) {
        return applyMapper.getApplyList(uid);
    }

    @Override
    public List<Map> getApplyListAnd(Integer uid) {
        return applyMapper.getApplyListAnd(uid);
    }


}
